import axios from "axios";
export default {
	post(url , data) {
		return new Promise((resolve, reject) => {
			axios({
				url,
				data,
				method: 'post',
			}).then(res => {
				if(res.data) {
					resolve(res.data)
				} else {
					reject(res)
				}
			}).catch(error => {
				reject(error)
			});
		})
	}
}
